package com.designCreator.facade
{
	import com.designCreator.command.StartupCommand;
	import com.designCreator.notifications.NotificationNames;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	import spark.components.Application;
	
	public class DesignCreatorFacade extends Facade
	{
		public static function getInstance() : DesignCreatorFacade
		{
			if ( instance == null )
			{
				instance = new DesignCreatorFacade();
			}
			return instance as DesignCreatorFacade;
		}
		
		override protected function initializeController() : void
		{
			super.initializeController();
			registerCommand( NotificationNames.STARTUP, StartupCommand );
			/*registerCommand( NotificationNames.SHOW_FEEDS, ShowFeedsCommand );
			registerCommand( NotificationNames.SHOW_FEED, ShowFeedCommand );
			registerCommand( NotificationNames.SHOW_PODCAST, ShowPodcastCommand );
			registerCommand( NotificationNames.SHOW_ALERT, ShowAlertCommand );*/
		}
		
		public function startup( app : Application ) : void
		{
			sendNotification( NotificationNames.STARTUP, app );
			/*sendNotification( NotificationNames.SHOW_FEEDS );*/
		}
	}
}